﻿<%@ Page Language="C#" MasterPageFile="~/Globals/GenericMasterPage.master" AutoEventWireup="true" CodeFile="ABMParametrosControl.aspx.cs" Inherits="Modules_EnfermedadesControlEstanque_ABMParametrosControl" Title="Untitled Page" %>

<%@ Register Src="../../Controls/TecnoPezPopUp.ascx" TagName="TecnoPezPopUp" TagPrefix="uc3" %>

<%@ Register Src="../../Controls/TecnopezDataGRIDABMView.ascx" TagName="TecnopezDataGRIDABMView"
    TagPrefix="uc2" %>

<%@ Register Src="../../Controls/TecnoPezUpdateProgress.ascx" TagName="TecnoPezUpdateProgress"
    TagPrefix="uc1" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>

<%@ Register Assembly="Microsoft.Practices.EnterpriseLibrary.Validation.Integration.AspNet"
    Namespace="Microsoft.Practices.EnterpriseLibrary.Validation.Integration.AspNet"
    TagPrefix="cc2" %>
    
<asp:Content ID="Content1" ContentPlaceHolderID="CPHPrincipal" runat="Server">
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
    <asp:UpdatePanel ID="UpdatePanel1" runat="server" UpdateMode="Conditional">
        <ContentTemplate>
            <asp:Wizard ID="wzrABM" runat="server" ActiveStepIndex="0" BorderColor="#B5C7DE"
                BorderWidth="0px" Font-Names="Verdana" Font-Size="0.8em" DisplaySideBar="False">
                <StepStyle Font-Size="0.8em" ForeColor="#333333" VerticalAlign="Top" />
                <SideBarStyle BackColor="#507CD1" Font-Size="0.9em" VerticalAlign="Top" />
                <NavigationButtonStyle BackColor="White" BorderColor="#507CD1" BorderStyle="Solid"
                    BorderWidth="1px" Font-Names="Verdana" Font-Size="0.8em" ForeColor="#284E98" />
                <WizardSteps>
                    <asp:WizardStep ID="wzrBusqueda" runat="server" StepType="Complete" Title="Busqueda">
                        <table style="width: 100%" id="TableData" cellspacing="0">
                            <tr>
                                <td colspan="3" class="cabeceraTabla">
                                    Buscar parámetros de control</td>
                            </tr>
                            <tr>
                                <td style="width: 200px" class="columnaLabels">
                                    <asp:Label ID="lblBuscarNombre" runat="server" Text="Descripci&#243;n" Width="200px"></asp:Label></td>
                                <td style="width: 210px;" class="columnaData">
                                    <asp:TextBox ID="txtBuscarDescripcion" runat="server" Width="200px"></asp:TextBox></td>
                                <td rowspan="2" valign="top">
                                    <asp:Button ID="cmdBuscar" runat="server" Text="Buscar" CssClass="Boton" Height="23px"
                                        Width="102px" BorderStyle="None"/>
                                    <asp:Button ID="cmdNuevo" runat="server" Text="Nuevo" Width="102px" OnClick="cmdNuevo_Click"
                                        CssClass="Boton" Height="23px" />
                                </td>
                            </tr>
                            <tr>
                                <td style="width: 200px" class="columnaLabels">
                                    <asp:Label ID="lblBuscarNombreCientifico" runat="server" Text="Unidad de medida"
                                        Width="200px"></asp:Label></td>
                                <td style="width: 210px" class="columnaData">
                                    <asp:DropDownList ID="cboBuscarUnidadMedida" runat="server" Width="207px">
                                    </asp:DropDownList>
                                </td>
                            </tr>
                            <tr>
                                <td colspan="3" style="height: 170px">
                                    <uc2:TecnopezDataGRIDABMView ID="TecnopezDataGRIDABMView1" runat="server" />
                                </td>
                            </tr>
                        </table>
                    </asp:WizardStep>
                    <asp:WizardStep ID="wzrEdicion" runat="server" StepType="Complete" Title="Edicion">
                        <table width="100%" cellspacing="0">
                            <tr>
                                <td colspan="4" class="cabeceraTabla" style="height: 20px">
                                    Datos del parámetro de control</td>
                            </tr>
                            <tr>
                                <td class="columnaLabels" style="width: 200px; height: 26px;">
                                    <asp:Label ID="Label1" runat="server" Text="C&#243;digo" Width="200px"></asp:Label></td>
                                <td class="columnaData" style="width: 205px; height: 26px;">
                                    <asp:TextBox ID="txtID" runat="server" Width="200px"></asp:TextBox>
                                </td>
                                <td class="columnaData" style="width: 1px; height: 26px;">
                                    &nbsp;</td>
                                <td style="width: 7px" rowspan="2" valign="top">
                                    <asp:Button ID="cmdEditar" runat="server" Text="Editar" Width="102px" OnClick="cmdEditar_Click"
                                        CssClass="Boton" Height="23px" CausesValidation="False" />
                                    <asp:Button ID="cmdEliminar" runat="server" Text="Eliminar" OnClick="cmdEliminar_Click"
                                        CssClass="Boton" Height="23px" Width="102px" CausesValidation="False" />
                                </td>
                            </tr>
                            <tr>
                                <td class="columnaLabels" style="width: 200px">
                                    <asp:Label ID="Label2" runat="server" Text="Descripci&#243;n" Width="200px"></asp:Label></td>
                                <td class="columnaData" style="width: 205px">
                                    <asp:TextBox ID="txtDescripcion" runat="server" Width="200px" MaxLength="30"></asp:TextBox>
                                </td>
                                <td class="columnaData" style="width: 1px">
                                    <asp:RequiredFieldValidator ID="RFVDescripcion" runat="server" ControlToValidate="txtDescripcion"
                                        ErrorMessage="Ingrese una descripci&#243;n">*</asp:RequiredFieldValidator>
                                    &nbsp;</td>
                            </tr>
                            <tr>
                                <td class="columnaLabels" style="width: 200px;">
                                    <asp:Label ID="Label3" runat="server" Text="Unidad de medida" Width="200px"></asp:Label></td>
                                <td class="columnaData" style="width: 205px;">
                                    <uc3:TecnoPezPopUp ID="TPPUnidadMedida" runat="server" />
                                </td>
                                <td class="columnaData" style="width: 1px;">&nbsp;
                                    </td>
                                <td style="width: 7px;" rowspan="2" valign="bottom">
                                    <asp:Button ID="cmdAceptar" runat="server" Text="Aceptar" OnClick="cmdAceptar_Click"
                                        CssClass="Boton" Height="23px" Width="102px" /><asp:Button ID="cmdCancelar" runat="server"
                                            Text="Cancelar" CssClass="Boton" Height="23px" Width="102px" CausesValidation="False"
                                            OnClick="cmdCancelar_Click" />
                                </td>
                            </tr>
                            <tr>
                                <td valign="top" class="columnaLabels" style="width: 200px">
                                    <asp:Label ID="Label4" runat="server" Text="Frecuencia de control (d&#237;as)" Width="200px"></asp:Label></td>
                                <td valign="top" class="columnaData" style="width: 205px">
                                    <asp:TextBox ID="txtFrecuencia" runat="server" Width="200px"></asp:TextBox>
                                    <br />
                                    <cc1:MaskedEditExtender ID="MaskedEditExtender1" runat="server" BehaviorID="ctl02_wzrABM_MaskedEditExtender1"
                                        CultureAMPMPlaceholder="AM;PM" CultureCurrencySymbolPlaceholder="" CultureDateFormat="MDY"
                                        CultureDatePlaceholder="/" CultureDecimalPlaceholder="." CultureThousandsPlaceholder=","
                                        CultureTimePlaceholder=":" Enabled="True" MaskType="Number" TargetControlID="txtFrecuencia" Mask="99999999" InputDirection="RightToLeft">
                                    </cc1:MaskedEditExtender>
                                </td>
                                <td class="columnaData" valign="top" style="width: 1px">
                                    &nbsp; &nbsp;
                                </td>
                            </tr>
                            <tr>
                                <td valign="top" colspan="2" style="height: 25px">
                                    <asp:Label ID="_lblError" runat="server" CssClass="errorLabel"></asp:Label>
                                    <br />
                                    <cc2:PropertyProxyValidator ID="PPVDescripcion" runat="server" Display="Dynamic"
                                        DisplayMode="List" RulesetName="" SetFocusOnError="True" ControlToValidate="txtDescripcion"></cc2:PropertyProxyValidator>
                                    <br />
                                    <cc2:PropertyProxyValidator ID="PPVUnidadMedida" runat="server" DisplayMode="List" RulesetName=""
                                        Display="Dynamic" ControlToValidate="txtDescripcion" OnValueConvert="PPVUnidadMedida_ValueConvert"></cc2:PropertyProxyValidator>
                                </td>
                                <td colspan="1" style="height: 25px; width: 1px;" valign="top">
                                </td>
                                <td valign="top" style="width: 7px; height: 25px;">
                                </td>
                            </tr>
                            <tr>
                                <td colspan="2" style="height: 25px" valign="top">
                                    &nbsp;
                                </td>
                                <td colspan="1" style="height: 25px; width: 1px;" valign="top">
                                </td>
                                <td style="width: 7px; height: 25px" valign="top">
                                </td>
                            </tr>
                        </table>
                    </asp:WizardStep>
                </WizardSteps>
                <SideBarButtonStyle BackColor="#507CD1" Font-Names="Verdana" ForeColor="White" />
                <HeaderStyle BackColor="#284E98" BorderColor="#EFF3FB" BorderStyle="Solid" BorderWidth="2px"
                    Font-Bold="True" Font-Size="0.9em" ForeColor="White" HorizontalAlign="Center" />
            </asp:Wizard>
        </ContentTemplate>
    </asp:UpdatePanel>
    <uc1:TecnoPezUpdateProgress ID="TecnoPezUpdateProgress1" runat="server" />
    
</asp:Content>
